package com.lagou.web.service.impl;

import com.lagou.provider.HelloServiceB;

import com.lagou.provider.HelloServiceA;
import com.lagou.web.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;


@Service
public class HelloServiceImpl implements HelloService {

  @Reference
  private HelloServiceA AService;
  @Reference
  private HelloServiceB BService;

  @Override
  public void sayHello() {
    String bService = BService.hello();
    System.out.println(bService);
    String aService = AService.hello();
    System.out.println(aService);
  }
}
